import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios'
import store from './store/index'

import VideoPlayer from 'vue-video-player'
import 'vue-video-player/src/custom-theme.css'
import 'video.js/dist/video-js.css'
Vue.use(VideoPlayer)

import VueCookies from 'vue-cookies'
Vue.use(VueCookies)




import VueHighlightJS from 'highlight.js';
Vue.use(VueHighlightJS)
Vue.directive('highlight', (el) => {
  let blocks = el.querySelectorAll('pre code')
  blocks.forEach((block) => {
    VueHighlightJS.highlightBlock(block)
  })
})

import VueSession from 'vue-session'
Vue.use(VueSession)
Vue.config.productionTip = false
Vue.use(ElementUI);


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')


import {request} from './network/request'


// request({
//   url:"/getUser",
//   method: "post",
//   params:{
//     phoneNumber:"123456"
//   }
// }).then(res=>{
//   console.log(res.data);
// }).catch(err=>{
//   console.log(err);
// });
/*request({
  url:'/getUser',
  method: "post",
  params: {
    phoneNumber:"123456"
  }
}).then(res => {
  console.log(res)
})*/

